import request from '@/utils/request'

// 查询直系亲人报告列表
export function listFamilytree(query) {
  return request({
    url: '/system/familytree/list',
    method: 'get',
    params: query
  })
}

// 查询直系亲人报告详细
export function getFamilytree(id) {
  return request({
    url: '/system/familytree/' + id,
    method: 'get'
  })
}

// 新增直系亲人报告
export function addFamilytree(data) {
  return request({
    url: '/system/familytree',
    method: 'post',
    data: data
  })
}

// 修改直系亲人报告
export function updateFamilytree(data) {
  return request({
    url: '/system/familytree',
    method: 'put',
    data: data
  })
}

// 删除直系亲人报告
export function delFamilytree(id) {
  return request({
    url: '/system/familytree/' + id,
    method: 'delete'
  })
}
